<#--
/****************************************************
 * Description: 用户的简单列表页面，没有编辑功能
 * Copyright:   Copyright (c) 2013
 * Company:     beiwaionline
 * @author      bfsu
 * @version     1.0
 * @see
	HISTORY
    *  2013-08-08 bfsu Create File
**************************************************/
-->
<#include "/templates/ace/ace-inc.ftl">
<@list>
<!--url='${base}//user/list' -->

    <thead>
        <tr>
            <th><input type="checkbox" class="bscheckall">
             </th>
            <th>用户名</th>
            <th>登录名</th>
            <th>邮箱</th>      
            <th>操作</th>
        </tr>
    </thead>
    <tbody>
        <#list page.items?if_exists as item>
        <tr>
            <td><input type="checkbox" class="bscheck" data="id:${item.id}"></td>
            <td>
                ${item.userName}
            </td>
            <td>
                ${item.loginName}
            </td>
            <td>
                ${item.email}
            </td>       
            <td>
                <@button icon="wrench" type="primary" function="ab" size="sm" onclick="bfsu.add('${base}/components/security/user/input/${item.id}','编辑用户')">修改</@button>
                <#if item.status=Constants.STATUS_VALID> 
                <@button icon="remove" type="primary" size="sm" onclick="bfsu.del('${base}/components/security/user/changeStatus/${item.status}/${item.id}','禁用用户？')">禁用</@button>
            	<#else>
            	<@button icon="remove" type="primary" size="sm" onclick="bfsu.del('${base}/components/security/user/changeStatus/100000302/${item.id}','启用用户？')">启用</@button>
            	</#if>
            	<@button icon="wrench" type="primary" size="sm" onclick="bfsu.edit('${base}/components/security/user/groupinput/${item.id}','用户组设置')">用户组设置</@button>
            	<@button icon="wrench" type="primary" size="sm" onclick="bfsu.edit('${base}/components/security/user/roleinput/${item.id}','角色设置')">角色设置</@button>
            </td>
        </tr>
        </#list>
    </tbody>

</@list>